package guicommon.controls.handlers;

import guicommon.controls.Control;

abstract class EventHandler<TEventArgs> {

    protected Control sender;

    public void SetSender(Control sender) {
        this.sender = sender;
    }

    public void Invoke(EventArgs args) {
        Event(sender, (TEventArgs)args);
    }

    public abstract void Event(Control sender, TEventArgs args);
}
